<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>列表页</title>
		<include file="__TEMPLATE__/publicCssAndJs" />
		<link rel="stylesheet" type="text/css" href="__TEMPLATE__/css/list.css"/>
	</head>
	<body>
		<!-- 头部开始 -->
		<include file="__TEMPLATE__/header" />
		<!-- 头部结束 -->
		<div id="all">
			<div id="listDescribe">
				<div class="DescribeLeft">
					<span>当前位置：</span>
					<a href="{|U:'Index/index'}">首页</a><span>&gt;</span>
					<foreach from="$fatherCateArr" key="$fck" value="$fcv">
						<if value="$fcv['cid']==$_GET['cid']">
							<span style="color: #000000;">{$fcv.cname}</span>
						<else />
							<a href="{|U:'List/index',array('cid'=>$fcv['cid'])}">{$fcv.cname}</a><span>&gt;</span>
						</if>
					</foreach>
				</div>
				<div class="DescribeRight">找到和<span class="DescribeRight1">{$gNumNowCate.cname}</span>相关商品<span class="DescribeRight2">{$gNumNowCate.gnum}</span>件</div>
			</div>
			<div id="listOption">
				<ul>
					<foreach from="$sonCids" key="$sck" value="$scv">
						<if value="$scv['cid']==$_GET['cid']">
							<li class="listOptionLeft">{$scv.cname}</li>
						<else />
							<li><a href="{|U:'index',array('cid'=>$scv['cid'])}">{$scv.cname}</a><span>({$scv.goodsnum})</span></li>
						</if>
					</foreach>
				</ul>
			</div>
			
			<div id="attr-box">
				<div class="attr">
					<ul>
						<foreach from="$attr" key="$atk" value="$atv">
							<?php
							$temp = $param;
							$temp[$atk] = 0;
							?>
							<li class="attr-border">
								<h2>{$atv.taname}：</h2>
								<ul class="attr-content">
									<li>
										<a href="{|U:'index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$atk]==0">class="hover"</if>>不限</a>
									</li>
									<foreach from="$atv['value']" key="$atak" value="$atav">
										<?php
										$temp[$atk] = $atav['gaid'];
										?>
										<li>
											<a href="{|U:'index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$atk]==$atav['gaid']">class="hover"</if>>{$atav.gavalue}</a>
										</li>
									</foreach>
								</ul>
							</li>
						</foreach>
					</ul>
				</div>
			</div>
			
			<div id="floatDiv">
				<div class="floatDivTop">
					<div class="floatDivTopLeft"><a href="">全部商品</a></div>
					
				</div>
				
				<div class="floatDivBottom">
					<div class="floatDivBottomUl">
						<ul>
							<li class="moren">
								<?php
								if($_GET['order'] == 0){
									$order = 1;
								}elseif($_GET['order']==1){
									$order = 0;
								}else{
									$order = 0;
								}
								?>
								<a class="track" href="{|U:'index',array('cid'=>$_GET['cid'],'order'=>$order,'param'=>implode('_',$param))}"><em>最热</em>
								<span <if value="$_GET['order']==0">class="upTrendBottomRed"<elseif value="$_GET['order']==1" />class="BottomTrendUpRed"<else />class="upTrendBottom"</if>>按推荐由高到低</span></a>
							</li>
			                <!-- <li class="xiaoliang">
			                	<?php
								if($_GET['order'] == 2){
									$order = 3;
								}elseif($_GET['order']==3){
									$order = 2;
								}else{
									$order = 2;
								}
								?>
			                    <a class="track" href="{|U:'index',array('cid'=>$_GET['cid'],'order'=>$order,'param'=>implode('_',$param))}"><em>销量</em>
			                    <span <if value="$_GET['order']==2">class="upTrendBottomRed"<elseif value="$_GET['order']==3" />class="BottomTrendUpRed"<else />class="upTrendBottom"</if>>按销量由高到低</span></a>
			                </li>
			                <li class="haoping">
			                	<?php
								if($_GET['order'] == 4){
									$order = 5;
								}elseif($_GET['order']==5){
									$order = 4;
								}else{
									$order = 4;
								}
								?>
			                    <a class="track" href="{|U:'index',array('cid'=>$_GET['cid'],'order'=>$order,'param'=>implode('_',$param))}"><em>好评</em>
			                    <span <if value="$_GET['order']==4">class="upTrendBottomRed"<elseif value="$_GET['order']==5" />class="BottomTrendUpRed"<else />class="upTrendBottom"</if>>按评价从高到低</span></a>
			                </li> -->
			                <li class="zuixin">
			                	<?php
								if($_GET['order'] == 6){
									$order = 7;
								}elseif($_GET['order']==7){
									$order = 6;
								}else{
									$order = 6;
								}
								?>
			                    <a class="track" href="{|U:'index',array('cid'=>$_GET['cid'],'order'=>$order,'param'=>implode('_',$param))}"><em>最新</em>
			                    <span <if value="$_GET['order']==6">class="upTrendBottomRed"<elseif value="$_GET['order']==7" />class="BottomTrendUpRed"<else />class="upTrendBottom"</if>>上架新品</span></a>
			                </li>
							<li class="floatDivBottomUlLi">
								<?php
								if($_GET['order'] == 8){
									$order = 9;
								}elseif($_GET['order']==9){
									$order = 8;
								}else{
									$order = 8;
								}
								?>
								<a href="{|U:'index',array('cid'=>$_GET['cid'],'order'=>$order,'param'=>implode('_',$param))}"><em>价格</em>
								<span <if value="$_GET['order']==8">class="upTrendBottomRed"<elseif value="$_GET['order']==9" />class="BottomTrendUpRed"<else />class="upTrendBottom"</if>></span></a>
								<!-- <span></span>
								<ul>
									<li><a href=""><em>价格</em><span class="upTrendBottom"></span></a></li>
									<li><a href=""><em>折扣</em><span class="upTrendBottom"></span></a></li>
									<li><a href=""><em>直降</em><span class="upTrendBottom"></span></a></li>
								</ul> -->
							</li>
						</ul>
					</div>
					
					<div class="searchbarPrice">
						<div class="searchbarPriceTop">
							<form action="" method="post">
								<input type="text" name="pstart" id="" value="" />
								<span>-</span>
								<input type="text" name="pend" id="" value="" />
								<input type="submit" value="查询" class="sPriceBtn" />
							</form>
						</div>
					</div>
					
					<div class="combineSame">
						<a href="">合并同款</a>
					</div>
				</div>
			</div>
			
			<div id="content">
				<if value="empty($goodsData)">
					<p>本分类下还没有商品</p>
				<else />
					<foreach from="$goodsData" key="$gk" value="$gv">
						<div class="contentDiv">
							<div class="contentImg">
								<a href="{|U:'Content/index',array('gid'=>$gv['gid'])}"><img src="__ROOT__/{$gv.gpic}"/><i></i></a>
							</div>
							<a class="contentDivA" style="height: 20px;overflow: hidden;" href="{|U:'Content/index',array('gid'=>$gv['gid'])}">{$gv.gname}</a>
							<span>售价￥{$gv.gshopprice}</span>
						</div>
					</foreach>
				</if>
			</div>
			<div id="page">{$pageData}</div>
			<div class="foot">
				<ul>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li class="footLine">
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
				</ul>
			</div>
		</div>
		<div class="copyRight">
			<div class="copyRightTab"><p>Copyright 2007 - 2014 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号</p></div>
		</div>
	</body>
</html>
